import { createAPI, createFormAPI } from '@/utils/request'

export const insertDrug = data => createFormAPI('/admin/drug', 'post', data)
export const deleteDrug= data => createAPI(`/admin/drug/${data.id}`, 'delete', data)
export const updateDrug= data => createAPI('/admin/drug', 'put', data)
export const selectDrug= data => createAPI('/admin/drug', 'get', data)
export const drugNum= data => createAPI('/admin/drugNum','get',data)
